package com.cs.pk.form.check.adapter;

import org.eclipse.swt.events.TypedEvent;
import org.eclipse.swt.graphics.Color;
import org.eclipse.swt.widgets.Control;

import com.cs.pk.form.check.ICheck;

public class CheckAdapter implements ICheck {
	
	public Control control = null;
	public CheckAdapter(Control control){
		this.control = control;
	}

	public Object getFailObject() {
		return new Color(control.getDisplay(), 255, 0, 0 );
	}

	public Object getPassObject() {
		return control.getBackground();
	}

	public boolean verify(TypedEvent event) {
		return false;
	}

	public Control getCheckObject() {
		return control;
	}
	
	

}
